import {request} from "../request";
import store from "../../store";

//新建会议
export function createMeeting(meetingPy){
	return request({
		url:'/meeting/create',
		method:'post',
		data:meetingPy
	})
}

//查询我的会议
export function queryPersonMeeting(){
	return  request({
		url: '/meeting/personal-to-do-list',
		method: 'get'
	})
}

//查询我发起的会议
export function personalMeetingApply(){
	return request({
		url: '/meeting/my-stared',
		method: 'get'
	})
}

//查询已完成的会议
export function personalFinishedMeeting(){
	return request({
		url: '/meeting/personal-finished-task',
		method: 'get'
	})
}

//查询到期未完成的会议
export function personalUndoneMeeting(){
	return request({
		url: '/meeting/personal-undone-task',
		method: 'get'
	})
}

//查询流程实例的详情
export function processInstanceDetail(processInstanceId){
	return request({
		url: '/meeting/process-detail',
		method: 'get',
		params:{
			processInstanceId
		}
	})
}

//完成会议签到
export function completeSignIn(taskId){
	return request({
		url: '/meeting/sign-in',
		method: 'post',
		params: {
			taskId
		}
	})
}

